package edu.sias.userQuestion.mapper;

import edu.sias.userQuestion.domain.Userques;
import edu.sias.userQuestion.domain.UserquesDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

@Mapper
public interface UserquestionMapper {
    void add(UserquesDto userquesDto);
    @Select("select id from user_question where user_id=#{user_id} and question_id=#{question_id}")
    Integer getByUserIdAndQuestionId(Userques userQues);
}
